﻿using UnityEngine;

public class BattleState : ISceneState
{
    // 正式游戏场景,程序业务逻辑开始暴增,为了对各个模块功能系统进行封装,将其封装成接口,采用外观模式

    public BattleState(SceneStateController controller) : base("03BattleScene", controller)
    {
    }

    public override void StateStart()
    {
        Debug.Log("GameFacade");
        Debug.Log(GameFacade.Instance);
        GameFacade.Instance.Init();
    }

    public override void StateEnd()
    {
        GameFacade.Instance.Release();
    }

    public override void StateUpdate()
    {
        GameFacade.Instance.Update();
    }
}